package com.yin.myproject.zk.recipes.lock;

import java.io.IOException;

/**
 * @author Eason
 * @create 2018-04-12 15:37
 **/
public class ExclusiveLock01Demo {
    public static void main(String[] args) throws IOException, InterruptedException {
        ExclusiveLock01 lock01 = new ExclusiveLock01("test");
        try {
            lock01.lock();
            System.out.println(1);
        } finally {
            lock01.unlock();
        }
    }
}
